package com.jm.common.conf.mybatis;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;

/**
 * @author kong
 */
public interface EnhancePlusMapper<T> extends BaseMapper<T> {

    /**
     * 增强批量新增
     */
    int enhanceBatchInsert(@Param("list") Collection<T> rows);

    /**
     * 增强批量更新
     */
    int enhanceBatchUpdate(@Param("list") Collection<T> rows);

    /**
     * 增强更新
     */
    int enhanceUpdate(T t);

    /**
     * 增强批量删除
     */
    int enhanceBatchDelete(@Param("list") Collection<String> rows);

    /**
     * 增强删除
     */
    int enhanceDelete(Object id);

}
